<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Register</title>
<style type="text/css">
<!--
#Msg{
	font-size:16px;
	font-family:微软雅黑;
	border-width:0px;
	width:100%;
	height:90%;
}
div p {
	font-family:微软雅黑;
	font-size:16px;
}

input {
	font-family:微软雅黑;
	font-size:16px;
}

.button{
	width:100px;
	height:32px;
	font-family:'Courier New', Courier, monospace;
	font-size:16px;
	text-align:center;
}

-->
</style>
<script type="text/javascript" src="./js/Common.js"></script>
<script type="text/javascript" language="javascript">
// <![CDATA[
function Window_Load(){
	Opacity(document.getElementById("Password"),0);
	Opacity(document.getElementById("UserName"),60);
	Opacity(document.getElementById("Nickname"),60);
	Opacity(document.getElementById("Avatar"),60);
	Opacity(document.getElementById("Dummy"),60);
	Opacity(document.getElementById("Commands"),60);
	fixPng(H$("bg"));
	window.parent.fadeIn();
	Password_Change();
}

function Password_Change(){
	document.getElementById("Dummy").value=document.getElementById("Password").value;
}

function ValidateData(){
	if(document.getElementById("Password").value!="" && document.getElementById("UserName")!="")
	{
		document.getElementById("pswHash").value=CalcHash(document.getElementById("Password").value);
		window.parent.fadeOut();
		return true;
	}
	alert("More Fields Required for Register.");
	return false;
}

function CancelLogin(){
	window.parent.fadeOut();
}
// ]]>
</script>
</head>

<body bgcolor="transparent" style="background:none;" onload="javascript:Window_Load();">
    <div style="position:relative; height:308; width:410px; left: 50%; top: 5px; margin-left:-205px;">
    	<img id="bg" src="<%=Application(Session("Server") & "Register-trans.png")%>" style="position:absolute; top:0px; left:0px; z-index:-1;" />
          <form action="Reg.asp" method="post" name="PostMessage" target="_self" id="PostMessage" onsubmit="return ValidateData();" style="position:absolute; left:0px; top:0px; width:100%; height:100%;">
            <div align="center" style="position:absolute; left: 145px; top: 30px; width: 115px;">
              <input type="text" name="UserName" id="UserName" />
            </div>
            <div align="center" style="position:absolute; left: 145px; top: 145px; width: 115px;">
              <input type="text" name="Avatar" id="Avatar" />
            </div>
            <div align="center" style="position:absolute; left: 145px; top: 200px; width: 115px;">
              <input type="text" name="Nickname" id="Nickname" />
            </div>
            <div id="Commands" align="right" style="padding-top:5px; position:absolute; left:24px; top: 261px;">
              <input type="submit" name="Submit" id="Submit" value="Register" align="right"class="button"/>
              <input type="button" name="Cancel" id="Cancel" value="Cancel" align="right" onclick="CancelLogin();" class="button"/>
            </div>
            <input type="hidden" name="pswHash" id="pswHash" value="" />
        </form>
        <div align="center" style="position:absolute; left: 145px; top: 85px; width: 115px; z-index:5;">
          <input type="text" name="Password" id="Password" onkeyup="Password_Change();" />
      	</div>
        <div align="center" style="position:absolute; left: 145px; top: 85px; width: 115px;">
          <input type="password" name="Dummy" id="Dummy" onchange="" />
        </div>
</div>
</body>
</html>
